import request from '@/utils/request'

export const baseUrl = '/population'

// 数据类别
export const getDataTyes = (code) => {
  return request({
    url: `${baseUrl}/getDictItemByDictCode/${code}`,
    method: 'get'
  })
}

// 表格
export const listAdministrativeArea = (params) => {
  return request({
    url: `${baseUrl}/versionPage`,
    method: 'get',
    params
  })
}

// 元数据管理
export const getDetail = (version) => {
  return request({
    url: `${baseUrl}/getMetaDataByVersionCode/${version}`,
    method: 'get'
  })
}

// 数据视图
export const queryDataViewRk = (params) => {
  return request({
    url: `${baseUrl}/queryDataView`,
    method: 'get',
    params
  })
}